package org.jeecg.modules.wmhb.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum BpmStatusEnum {
    AUDIT_STATUS_0("0", "草稿"),
    AUDIT_STATUS_1("1", "审批中"),
    AUDIT_STATUS_2("2", "审批通过"),
    AUDIT_STATUS_3("3", "驳回"),
    AUDIT_STATUS_4("4", "已过期");


    /**
     * 状态
     */
    private final String status;

    /**
     * 描述
     */
    private final String description;

    public static String descOf(String status) {
        for (BpmStatusEnum auditStatus : BpmStatusEnum.values()) {
            if (auditStatus.status.equals(status)) {
                return auditStatus.description;
            }
        }
        return "";
    }
}
